/// id : 1
/// name : "老谈"
/// mobile : "18610729170"
/// avatar : ""
/// department_id : 9
/// department_name : "产品3级部门"
/// position_id : 2
/// position_name : "一坨一号"
/// position_type : 1
/// area : ""
/// follow_type : 1
/// follow_type_text : "线上"

List<UserBean> userListBeanFromJson(List<dynamic> list) {
  return List<UserBean>.from(list.map((x) => UserBean.fromJson(x)));
}

class UserBean {
  String? id;
  String? name;
  String? mobile;
  int? regHospitalId;
  int? platform;
  String? platformName;
  String? token;
  String? hxUsername;
  String? hxPassword;
  int? isPermission;

  UserBean(
      {this.id,
        this.name,
        this.mobile,
        this.regHospitalId,
        this.platform,
        this.platformName,
        this.token,
        this.hxUsername,
        this.hxPassword,
        this.isPermission});

  UserBean.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    name = json['name'];
    mobile = json['mobile'];
    regHospitalId = json['reg_hospital_id'];
    platform = json['platform'];
    platformName = json['platform_name'];
    token = json['token'];
    hxUsername = json['hx_username'];
    hxPassword = json['hx_password'];
    isPermission = json['is_permission'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['name'] = this.name;
    data['mobile'] = this.mobile;
    data['reg_hospital_id'] = this.regHospitalId;
    data['platform'] = this.platform;
    data['platform_name'] = this.platformName;
    data['token'] = this.token;
    data['hx_username'] = this.hxUsername;
    data['hx_password'] = this.hxPassword;
    data['is_permission'] = this.isPermission;
    return data;
  }
}
